Ext.define('NMC.view.PanelAdmUser', {
    extend: 'Ext.panel.Panel',
    title : 'Gestion des utilisateurs',
    layout: {
        type: 'border',
        padding: 5
    },
    requires: [
        'NMC.view.user.UserList',
        'NMC.view.user.UserEdit'
    ],
    alias : 'widget.panelAdmUser',
    initComponent: function() {
        this.items = [
            {
                xtype: 'userList',
                id: 'userList',
                region : 'west',
                width : 300,
                split: true
            },
            {
                xtype: 'userEdit',
                id : 'userEdit',
                region : 'center',
                padding: 5
            }
    
        ];
        this.id = 'panelAdmUser';

        this.tbar= [
            {
                text:'Ajouter',
                iconCls: 'icon-add',
                action : 'add'
            },
            {
                text:'Supprimer',
                iconCls: 'icon-delete',
                action : 'delete'
            },
            {xtype: 'tbfill'},
            {
                text:'Sauver',
                iconCls: 'icon-disk',
                action : 'save'
            },
            {
                text:'Annuler',
                iconCls: 'icon-cancel',
                action : 'cancel'
            }
        ]

        this.callParent(arguments);
        
    }
    
    
});


